#include "copyandoutput.h"

int copyandoutput(char *path1, char *path2, char mode)
{
    int status = mycp(path1, path2, mode);
    if (status == -1)
    {
        printf("ERROR: Copy failed.\n");
        printf("ERROR: %s\n", strerror(errno));
        return -1;
    }
    else
    {
        printf("Copy Success!\n");
        return 0;
    }
}